Optimal. Leaf size=234 \[ \frac {2 a^2 (11 B+12 C) \tan (c+d x) \sec ^4(c+d x)}{99 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a^2 (187 B+168 C) \tan (c+d x) \sec ^3(c+d x)}{693 d \sqrt {a \sec (c+d x)+a}}+\frac {4 a^2 (187 B+168 C) \tan (c+d x)}{495 d \sqrt {a \sec (c+d x)+a}}+\frac {4 (187 B+168 C) \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{1155 d}-\frac {8 a (187 B+168 C) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{3465 d}+\frac {2 a C \tan (c+d x) \sec ^4(c+d x) \sqrt {a \sec (c+d x)+a}}{11 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.64, antiderivative size = 234, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 42, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4072, 4018, 4016, 3803, 3800, 4001, 3792} \[ \frac {2 a^2 (11 B+12 C) \tan (c+d x) \sec ^4(c+d x)}{99 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a^2 (187 B+168 C) \tan (c+d x) \sec ^3(c+d x)}{693 d \sqrt {a \sec (c+d x)+a}}+\frac {4 a^2 (187 B+168 C) \tan (c+d x)}{495 d \sqrt {a \sec (c+d x)+a}}+\frac {4 (187 B+168 C) \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{1155 d}-\frac {8 a (187 B+168 C) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{3465 d}+\frac {2 a C \tan (c+d x) \sec ^4(c+d x) \sqrt {a \sec (c+d x)+a}}{11 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3792
Rule 3800
Rule 3803
Rule 4001
Rule 4016
Rule 4018
Rule 4072
Rubi steps
\begin {align*} \int \sec ^3(c+d x) (a+a \sec (c+d x))^{3/2} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\int \sec ^4(c+d x) (a+a \sec (c+d x))^{3/2} (B+C \sec (c+d x)) \, dx\\ &=\frac {2 a C \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {2}{11} \int \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \left (\frac {1}{2} a (11 B+8 C)+\frac {1}{2} a (11 B+12 C) \sec (c+d x)\right ) \, dx\\ &=\frac {2 a^2 (11 B+12 C) \sec ^4(c+d x) \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a C \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {1}{99} (a (187 B+168 C)) \int \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {2 a^2 (187 B+168 C) \sec ^3(c+d x) \tan (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (11 B+12 C) \sec ^4(c+d x) \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a C \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {1}{231} (2 a (187 B+168 C)) \int \sec ^3(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {2 a^2 (187 B+168 C) \sec ^3(c+d x) \tan (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (11 B+12 C) \sec ^4(c+d x) \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a C \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {4 (187 B+168 C) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{1155 d}+\frac {(4 (187 B+168 C)) \int \sec (c+d x) \left (\frac {3 a}{2}-a \sec (c+d x)\right ) \sqrt {a+a \sec (c+d x)} \, dx}{1155}\\ &=\frac {2 a^2 (187 B+168 C) \sec ^3(c+d x) \tan (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (11 B+12 C) \sec ^4(c+d x) \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}-\frac {8 a (187 B+168 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{3465 d}+\frac {2 a C \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {4 (187 B+168 C) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{1155 d}+\frac {1}{495} (2 a (187 B+168 C)) \int \sec (c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {4 a^2 (187 B+168 C) \tan (c+d x)}{495 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (187 B+168 C) \sec ^3(c+d x) \tan (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (11 B+12 C) \sec ^4(c+d x) \tan (c+d x)}{99 d \sqrt {a+a \sec (c+d x)}}-\frac {8 a (187 B+168 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{3465 d}+\frac {2 a C \sec ^4(c+d x) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{11 d}+\frac {4 (187 B+168 C) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{1155 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 6.23, size = 487, normalized size = 2.08 \[ \frac {2 B \tan (c+d x) \sec ^4(c+d x) (a (\sec (c+d x)+1))^{3/2}}{9 d (\sec (c+d x)+1)^2}+\frac {34 B \tan (c+d x) \sec ^3(c+d x) (a (\sec (c+d x)+1))^{3/2}}{63 d (\sec (c+d x)+1)^2}+\frac {68 B \tan (c+d x) \sec ^2(c+d x) (a (\sec (c+d x)+1))^{3/2}}{105 d (\sec (c+d x)+1)^2}+\frac {272 B \tan (c+d x) \sec (c+d x) (a (\sec (c+d x)+1))^{3/2}}{315 d (\sec (c+d x)+1)^2}+\frac {544 B \tan (c+d x) (a (\sec (c+d x)+1))^{3/2}}{315 d (\sec (c+d x)+1)^2}+\frac {2 C \tan (c+d x) \sec ^5(c+d x) (a (\sec (c+d x)+1))^{3/2}}{11 d (\sec (c+d x)+1)^2}+\frac {14 C \tan (c+d x) \sec ^4(c+d x) (a (\sec (c+d x)+1))^{3/2}}{33 d (\sec (c+d x)+1)^2}+\frac {16 C \tan (c+d x) \sec ^3(c+d x) (a (\sec (c+d x)+1))^{3/2}}{33 d (\sec (c+d x)+1)^2}+\frac {32 C \tan (c+d x) \sec ^2(c+d x) (a (\sec (c+d x)+1))^{3/2}}{55 d (\sec (c+d x)+1)^2}+\frac {128 C \tan (c+d x) \sec (c+d x) (a (\sec (c+d x)+1))^{3/2}}{165 d (\sec (c+d x)+1)^2}+\frac {256 C \tan (c+d x) (a (\sec (c+d x)+1))^{3/2}}{165 d (\sec (c+d x)+1)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 145, normalized size = 0.62 \[ \frac {2 \, {\left (16 \, {\left (187 \, B + 168 \, C\right )} a \cos \left (d x + c\right )^{5} + 8 \, {\left (187 \, B + 168 \, C\right )} a \cos \left (d x + c\right )^{4} + 6 \, {\left (187 \, B + 168 \, C\right )} a \cos \left (d x + c\right )^{3} + 5 \, {\left (187 \, B + 168 \, C\right )} a \cos \left (d x + c\right )^{2} + 35 \, {\left (11 \, B + 21 \, C\right )} a \cos \left (d x + c\right ) + 315 \, C a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{3465 \, {\left (d \cos \left (d x + c\right )^{6} + d \cos \left (d x + c\right )^{5}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.95, size = 305, normalized size = 1.30 \[ \frac {4 \, {\left ({\left ({\left ({\left ({\left (2 \, \sqrt {2} {\left (517 \, B a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 483 \, C a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 11 \, \sqrt {2} {\left (517 \, B a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 483 \, C a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 198 \, \sqrt {2} {\left (69 \, B a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 56 \, C a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 462 \, \sqrt {2} {\left (32 \, B a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 33 \, C a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2310 \, \sqrt {2} {\left (4 \, B a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 3 \, C a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 3465 \, \sqrt {2} {\left (B a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + C a^{7} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{3465 \, {\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a\right )}^{5} \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.82, size = 161, normalized size = 0.69 \[ -\frac {2 \left (-1+\cos \left (d x +c \right )\right ) \left (2992 B \left (\cos ^{5}\left (d x +c \right )\right )+2688 C \left (\cos ^{5}\left (d x +c \right )\right )+1496 B \left (\cos ^{4}\left (d x +c \right )\right )+1344 C \left (\cos ^{4}\left (d x +c \right )\right )+1122 B \left (\cos ^{3}\left (d x +c \right )\right )+1008 C \left (\cos ^{3}\left (d x +c \right )\right )+935 B \left (\cos ^{2}\left (d x +c \right )\right )+840 C \left (\cos ^{2}\left (d x +c \right )\right )+385 B \cos \left (d x +c \right )+735 C \cos \left (d x +c \right )+315 C \right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, a}{3465 d \cos \left (d x +c \right )^{5} \sin \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 13.51, size = 720, normalized size = 3.08 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {3}{2}} \left (B + C \sec {\left (c + d x \right )}\right ) \sec ^{4}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________